package net.xxcl.exam.model;

import net.xxcl.exam.util.JsonDateSerializer;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;

/**
 * User: 夏汛
 * Date: 11-12-27
 * Time: 下午10:04
 * 为查询考试而设置，因属于多表关联查询，返回HashMap，返回到页面后日期为毫秒，格式js处理起来比较困难，暂这样处理
 */
public class PaperForKs {
    private Integer id;

    private String name;

    private Integer state;

    private Integer scorestate;

    private Integer totalmark;

    private String kemuname;

    private String kstime;

    private Date starttime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getScorestate() {
        return scorestate;
    }

    public void setScorestate(Integer scorestate) {
        this.scorestate = scorestate;
    }

    public Integer getTotalmark() {
        return totalmark;
    }

    public void setTotalmark(Integer totalmark) {
        this.totalmark = totalmark;
    }

    public String getKemuname() {
        return kemuname;
    }

    public void setKemuname(String kemuname) {
        this.kemuname = kemuname;
    }

    public String getKstime() {
        return kstime;
    }

    public void setKstime(String kstime) {
        this.kstime = kstime;
    }

    @JsonSerialize(using=JsonDateSerializer.class)
    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }
}
